package com.boottest.better.test.server;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.Ordered;
import org.springframework.core.PriorityOrdered;
import org.springframework.stereotype.Component;

@Component
public class MyBeanServer implements CommandLineRunner, PriorityOrdered {

    @Override
    public void run(String... arg0) throws Exception {

        System.out.println("this.is MyBeanServer");

    }

    @Override
    public int getOrder() {
        return Ordered.HIGHEST_PRECEDENCE;
    }

}
